﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewUserControl<IList<RushTracker.Core.Models.Torrents.Torrent>>" %>
    <table class="metadata-list">
        <tr>
            <td style="width: 20px;"></td>
            <td class="header">Name</td>
            <td class="header">Uploaded</td>
            <td class="header">Downloads</td>
            <td class="header">Seeders</td>
            <td class="header">Leechers</td>
            <td class="header">Download</td>
        </tr>
        <% foreach (Torrent t in Model)
           { %>
        
        <tr>
            <td></td>
            <td><%: Html.ActionLink(t.Name, "Show", "Torrents", new { torrentId = t.Id }, "") %></td>
            <td><%: t.Information.CreationDate %></td>
            <td><%: t.Downloads %></td>
            <td><%: t.Seeders %></td>
            <td><%: t.Leechers %></td>
            <td><%: Html.ActionLink("D", "Download", "Torrents", new { torrentId = t.Id }, "") %></td>
        </tr>
        
        <% } %>
    </table>
